Returns distinct elements from a parallel sequence by using a specified
IEqualityComparer{T} to compare values.
Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function Distinct(Of TSource) ( _
source As ParallelQuery(Of TSource), _
comparer As IEqualityComparer(Of TSource) _
) As ParallelQuery(Of TSource) |
Parameters
- source
- Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
The sequence to remove duplicate elements from.
- comparer
- Type: System.Collections.Generic..::.IEqualityComparer<(Of <(TSource>)>)
An IEqualityComparer<(Of <(T>)>) to compare values.
Type Parameters
- TSource
- The type of the elements of source.
Return Value
A sequence that contains distinct elements from the source sequence.
Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException |
source is a null reference (Nothing in Visual Basic).
|
See Also